<%--
  Created by IntelliJ IDEA.
  User: 17355
  Date: 2019/6/25
  Time: 16:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>欢迎页面</title>
</head>
<body>

<%@include file="common02.jsp"%><!--禁止非法用户绕过登录入口直接访问后台主页-->
<div>
    欢迎${sessionScope.user},进入后台主页！
    当前访问人数为：${applicationScope.count}人
    <a href="javascript:void(0)" onclick="isOut()">注销</a>
</div>

<script>
    function isOut() {
        var result = window.confirm("确定要注销吗？");
        if (result) {
            window.location.href = "${pageContext.request.contextPath}/logout02.action";
        }
    }
</script>
</body>
</html>
